import Vue from 'vue'
import App from './App'
import router from './router'

Vue.config.productionTip = false;
// 全局引入样式初始化
import 'css/reset.css'

// 全局引入iconfonts
import 'css/iconfont.css'

// 引入
import FastClick from 'fastclick'
// 使用
FastClick.attach(document.body);

// 全局引入Swiper
import VueAwesomeSwiper from 'vue-awesome-swiper'
// require styles
import 'swiper/dist/css/swiper.css'
Vue.use(VueAwesomeSwiper);

// 引入axios
import axios from "axios";
Vue.prototype.$http = axios;

// 引入仓库
import store from "./store"

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,// 注册仓库
  components: { App },
  template: '<App/>'
});
